import request from "./request";

//查询所有分类
export const findAllCategory = () => request.get("/category/findAll");

//删除
export const deleteCategory = (id) => request.get("/category/delete?id=" + id);

//添加
export const addCategory = (data) => request.post("/category/add", data);

//修改
export const updateCategory = (data) => request.post("/category/update", data);
